<?php
/**
 * (actions)
 */
namespace App\Admin\Actions\Products\Sku;

use Encore\Admin\Grid\Tools\AbstractTool;
class ImportSku extends AbstractTool
{
    /**
     * Render Export button.
     *
     * @return string
     */
    public function render()
    {
        $url = '/xqc/products/sku-upload';

        return <<<EOT

<div class="btn-group">
    <button class="btn btn-sm btn-twitter">导入产品文件</button>
    <button type="button" class="btn btn-sm btn-twitter dropdown-toggle" data-toggle="dropdown">
        <span class="caret"></span>
        <span class="sr-only">Toggle Dropdown</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li><a href="{$url}?type=sku">导入产品</a></li>
        <li><a href="{$url}?type=sku-up">更新产品</a></li>
    </ul>
</div>

<div class="btn-group">
    <button class="btn btn-sm btn-twitter">导入品牌文件</button>
    <button type="button" class="btn btn-sm btn-twitter dropdown-toggle" data-toggle="dropdown">
        <span class="caret"></span>
        <span class="sr-only">Toggle Dropdown</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li><a href="{$url}?type=sku-brand">导入品牌产品</a></li>
        <li><a href="{$url}?type=sku-up-brand">更新品牌产品</a></li>
    </ul>
</div>
EOT;
    }
}
